import api from '@/api/api'
import channelRoles from "./channelRoles";

const voteRoles =
  {
    name: '问卷调查',
    role: '/vote',
    api: [api.voteList],
    children: [
      {
        name: '列表',
        role: '/vote/list',
        api: [api.voteList]
      },
      {
        name: '保存内容',
        role: '/vote/saveContent',
        api: [api.voteSaveContent]
      },
      {
        name: '详情',
        role: '/vote/view',
        api: [api.voteGet]
      },
      {
        name: '添加',
        role: '/vote/save',
        api: [api.voteSave,]
      },
      {
        name: '修改',
        role: '/vote/updateComment',
        api: [api.voteupdate]
      },
      {
        name: '删除',
        role: '/vote/delete',
        api: [api.voteDelete]
      },
    ]
  }
export default voteRoles;
